const d=Math.random().toString(36).slice(2),e={getConfig:()=>(globalThis.robo||e.init(),globalThis.robo.config),getFlashcoreAdapter:()=>(globalThis.robo||e.init(),globalThis.robo.flashcore._adapter),getPortalValues:()=>(globalThis.robo||e.init(),{apis:globalThis.robo.portal.apis,commands:globalThis.robo.portal.commands,context:globalThis.robo.portal.context,events:globalThis.robo.portal.events,middleware:globalThis.robo.portal.middleware,moduleKeys:globalThis.robo.portal.moduleKeys}),init:()=>{globalThis.robo={config:null,flashcore:{_adapter:null},portal:{apis:null,commands:null,context:null,events:null,middleware:[],moduleKeys:new Set}};},instanceId:d,registerConfig:l=>{globalThis.robo||e.init(),globalThis.robo.config=l;},registerFlashcore:l=>{globalThis.robo||e.init(),globalThis.robo.flashcore._adapter=l;},registerPortal:(l,a,i,t,s)=>{globalThis.robo||e.init(),globalThis.robo.portal.apis=l,globalThis.robo.portal.commands=a,globalThis.robo.portal.context=i,globalThis.robo.portal.events=t,globalThis.robo.portal.middleware=s;const r=new Set;l.forEach(o=>{o.module&&r.add(o.module);}),a.forEach(o=>{o.module&&r.add(o.module);}),i.forEach(o=>{o.module&&r.add(o.module);}),t.forEach(o=>{o.forEach(n=>{n.module&&r.add(n.module);});}),s.forEach(o=>{o.module&&r.add(o.module);}),globalThis.robo.portal.moduleKeys=new Set([...r].sort());}};

export { e as Globals };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=globals.js.map